Core.Link("StyleSheet", Core.GetUrl("Themes/Default/NewProject.css"), "text/css");

var Controls = null;
var Window = null, Control = null;

function init(completeCallback, errorCallback)
{
    function LoadModulesComplete()
    {
        Controls = Core.GetModule("Controls.js");

        Control = Core.GetModule("Controls.js").Control;

        _init(completeCallback, errorCallback);
    }

    Core.LoadModules(
        LoadModulesComplete, errorCallback,
        ["Controls.js"]
    );
}

function _init(completeCallback, errorCallback)
{
    try
    {
        //初始化代码，初始化完成后必须调用completeCallback;
        completeCallback();
    }
    catch (ex)
    {
        errorCallback(new Core.Exception(ex.mame, ex.message));
    }
}



function dispose(completeCallback, errorCallback)
{
    _dispose(completeCallback, errorCallback);
}

function _dispose(completeCallback, errorCallback)
{
    try
    {
        //卸载代码，卸载完成后必须调用completeCallback;
        completeCallback();
    }
    catch (ex)
    {
        errorCallback(new Core.Exception(ex.mame, ex.message));
    }
}

//共享全局变量和函数，在此定义的变量和函数将由该应用程序的所有实例共享





function MainWnd(config)
{
    var This = this;
    var OwnerForm = this;
    
    
    
    var width = config.Width, height = config.Height;
    config.Width=647;
    config.Height=423;

    Control.call(This, config);

    var Base = {
        GetType: This.GetType,
        is: This.is
    };

    This.GetType = function() { return "MainWnd"; }
    This.is = function(type) { return type == This.GetType() ? true : Base.is(type); }
    
    var tab9 = new Controls.SimpleTabControl({"Left":21,"Top":31,"Width":599,"Height":332,"AnchorStyle":Controls.AnchorStyle.Left|Controls.AnchorStyle.Top,"Parent":This,"Text":"","Css":"simple_tab","Tabs":[{"Text":"标签1","Width":80,"IsSelected":true,"ID":"ID100000011"},{"Text":"标签2","Width":80,"IsSelected":false,"ID":"ID100000012"}],"BorderWidth":1});
    
    
    
    tab9.OnSelectedTab.Attach(
        function(index,preIndex)
        {
            
        }
    )

    
    var dropdownlist10 = new Controls.DropDownList({"Left":113,"Top":30,"Width":100,"Height":22,"AnchorStyle":Controls.AnchorStyle.Left|Controls.AnchorStyle.Top,"Parent":tab9.GetPanel(0),"Text":"","Css":"dropdownlist"});
    
    

    
    var button11 = new Controls.Button({"Left":119,"Top":107,"Width":64,"Height":26,"AnchorStyle":Controls.AnchorStyle.Left|Controls.AnchorStyle.Top,"Parent":tab9.GetPanel(0),"Text":"","Css":"button"});
    
    
    
    button11.OnClick.Attach(
        function(btn)
        {
            
        }
    )

    
    var textbox12 = new Controls.PasswordBox({"Left":90,"Top":66,"Width":100,"Height":22,"AnchorStyle":Controls.AnchorStyle.Left|Controls.AnchorStyle.Top,"Parent":tab9.GetPanel(1),"Text":"","Css":"textbox","BorderWidth":1});
    
    

    
    var textarea13 = new Controls.TextArea({"Left":89,"Top":106,"Width":100,"Height":100,"AnchorStyle":Controls.AnchorStyle.Left|Controls.AnchorStyle.Top,"Parent":tab9.GetPanel(1),"Text":"","Css":"textarea","BorderWidth":1});
    
    

    
    var button14 = new Controls.Button({"Left":92,"Top":226,"Width":64,"Height":26,"AnchorStyle":Controls.AnchorStyle.Left|Controls.AnchorStyle.Top,"Parent":tab9.GetPanel(1),"Text":"","Css":"button"});
    
    
    
    button14.OnClick.Attach(
        function(btn)
        {
            
        }
    )
    
    This.Resize(width,height);

    

}

